package com.estore.DEMO01;

import java.io.File;
import java.io.FileReader;
import java.io.Reader;

public class fgr {
    public static void  main(String[] args) throws Exception {
        File file = new File("C:" + File.separator + "muyu" + File.separator + "vip" + File.separator + "demo.txt");
   if (file.exists()) {
       try (Reader in = new FileReader(file)) {
           char data[] = new char[1024];
           int len = in.read(data);
           System.out.println(new String(data, 0, len));
       } catch (Exception e) {
       }
   }
    }
    }
